<div ng-include src="'tpl/public/header.html'"></div> 
<div class="contents">
  <ol class="breadcrumb" style="background-color:#eee;float: left;font-size:14px;">
    <li><a href="#/index/panel">首页</a></li>
    <li class="active">
       搜索结果
    </li>
  </ol>
  <form class="form-inline search-box" style="text-align: right;" role="form" ng-submit="search()" novalidate>
    <div>
      <div class="form-group">
        <label class="sr-only" >产品名称</label>
        <input type="text" class="form-control" placeholder="产品名称" ng-model="config.pShortName">
        <input type="hidden" ng-model="config.pType" value="{{t}}" />
      </div>
  
      <button type="submit" class="btn btn-primary">查询</button>
      </div>
  </form>
  <div>
    
  </div>
  <div class="qudaoList_sort clear">
     <div ng-class="{'red':sortSelected=='1'}" ng-click="changeProductTypeQuery('02,03,06,07');sortSelected='1'">全部产品</div>
     <div ng-class="{'red':sortSelected=='2'}" ng-click="changeProductTypeQuery('02');sortSelected=2">集合信托</div>
     <div ng-class="{'red':sortSelected=='3'}" ng-click="changeProductTypeQuery('03');sortSelected=3">集合资管</div>
     <div ng-class="{'red':sortSelected=='4'}" ng-click="changeProductTypeQuery('07');sortSelected=4">债权基金</div>
     <div ng-class="{'red':sortSelected=='5'}" ng-click="changeProductTypeQuery('06');sortSelected=5">股权基金</div>

     <span style="float:right;font-size:13px;margin-right: 60px;">
        一共为您找到<span  style="color:red;">{{pager.totalCount}}</span>款产品
     </span>
  </div>
  
  <div ng-include src="'tpl/product/qudaoListchild.html'"></div>

	<div class="pager-box" ng-include src="'tpl/public/pager.html'" ng-show="products.length > 0"></div>
</div>

<div ng-show="showDataPreview">
  <div class="layer-bg"></div>
  <div class="layer-con " style="padding:10px 20px;">
    <span class="icons-close" title="关闭" ng-click="changeShowDataPreview(false)">X</span>
    <div>
      <div style="display:inline-block;margin-right: 140px;font-size:20px;">材料预览</div>
      <div style="display:inline-block;font-size:20px;"><a target="_blank" href="{{apiHost}}/productDownload.shtml?pId={{dataPreview[0].pId}}"><input type="button" value="下载全部"/></a></div>
    </div>
    <div class="form-group"  style="padding-top: 30px;text-align: left;">
      <p ng-repeat="d in dataPreview" style="margin-left:30px;">
        <a href="{{apiHost}}/productDownload.shtml?id={{d.id}}" target="_blank">{{d.fName}}</a>
      </p>
    </div>

  </div>
</div>